<?php

namespace app\common\controller;

use think\Controller;
use think\Request;

class Base extends Controller
{
    // 当前接收的参数
    public $param;
    public $request;
    public function _initialize()
    {
        parent::_initialize();
        $this->request = Request::instance();
        $this->param   = $this->request->param();
    }
    //空操作
    public function _empty()
    {

        $this->error('您当前请求被Ufo带走了~');

    }
    // 验证码检测
    public function checkCaptcha($code = '')
    {
        $captcha = new \think\captcha\Captcha();
        if (!$captcha->check($code)) {return false;}
        return true;
    }

}
